package com.flyqiu.form.core;

import com.flyqiu.form.api.config.IFlyQiuFormConfig;
import com.flyqiu.form.api.event.FlyQiuTableDataEvent;
import com.flyqiu.form.api.event.FlyQiuTableEvent;
import com.flyqiu.form.api.rule.FlyQiuFormDataRule;
import com.flyqiu.form.api.spi.FlyQiuFormStoreInitialization;
import com.flyqiu.form.core.rule.valid.RequiredFlyQiuFormDataRule;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class DefaultFlyQiuFormConfig implements IFlyQiuFormConfig {

    private List<FlyQiuFormDataRule> flyQiuFormDataRules = new ArrayList<>();
    private List<FlyQiuTableEvent> flyQiuTableEvents = new ArrayList<>();
    private List<FlyQiuTableDataEvent> flyQiuTableDataEvents = new ArrayList<>();
    private List<FlyQiuFormStoreInitialization> flyQiuFormStoreInitializations = new ArrayList<>();

    public DefaultFlyQiuFormConfig() {
        flyQiuFormDataRules.add(new RequiredFlyQiuFormDataRule());
    }


}
